package com.matezk.sael;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class ActionReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        int count = intent.getIntExtra("count", 0);
        Toast.makeText(context, String.format("广播消息count=%d", count), Toast.LENGTH_SHORT).show();
        abortBroadcast();
    }
}
